home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / X11 / xlock.z / xlock
Text File  |  1998-10-20  |  21KB  |  397 lines

  1.  
  2.  
  3.  
  4.      XXXXLLLLOOOOCCCCKKKK((((1111))))               IIIIrrrriiiixxxx ((((00006666 JJJJuuuunnnn 1111999999991111))))                XXXXLLLLOOOOCCCCKKKK((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           xlock - Locks the local X display until a password is
  10.           entered.
  11.  
  12.  
  13.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.           xxxxlllloooocccckkkk [ ----ddddiiiissssppppllllaaaayyyy dsp ] [ ----hhhheeeellllpppp ] [ ----rrrreeeessssoooouuuurrrrcccceeeessss ]
  15.                 [ ----bbbbllllaaaannnnkkkktttthhhhrrrreeeesssshhhh num ] [ ----////++++rrrreeeemmmmooootttteeee ] [ ----////++++mmmmoooonnnnoooo ]
  16.                 [ ----////++++nnnnoooolllloooocccckkkk ] [ ----////++++aaaalllllllloooowwwwrrrrooooooootttt ] [ ----////++++bbbbeeeessssaaaavvvveeeerrrr ]
  17.                 [ ----////++++aaaalllllllloooowwwwaaaacccccccceeeessssssss ] [ ----////++++eeeecccchhhhooookkkkeeeeyyyyssss ] [ ----////++++vvvv ]
  18.                 [ ----////++++uuuusssseeeeffffiiiirrrrsssstttt ] [ ----ddddeeeellllaaaayyyy usecs  ] [ ----bbbbaaaattttcccchhhhccccoooouuuunnnntttt num  ]
  19.                 [ ----ccccoooolllloooorrrrccccoooouuuunnnntttt num  ] [ ----nnnniiiicccceeee level  ]
  20.                 [ ----ttttiiiimmmmeeeeoooouuuutttt seconds ] [ ----ssssaaaattttuuuurrrraaaattttiiiioooonnnn value  ]
  21.                 [ ----ffffoooonnnntttt fontname  ] [ ----bbbbgggg color  ] [ ----ffffgggg color  ]
  22.                 [ ----mmmmooooddddeeee mode  ] [ ----nnnnaaaammmmeeee textstring  ]
  23.                 [ ----ppppaaaasssssssswwwwoooorrrrdddd textstring  ] [ ----iiiinnnnffffoooo textstring  ]
  24.                 [ ----vvvvaaaalllliiiiddddaaaatttteeee textstring  ] [ ----iiiinnnnvvvvaaaalllliiiidddd textstring  ]
  25.  
  26.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  27.           xxxxlllloooocccckkkk blanks (or otherwise saves) the  screen  and  possibly
  28.           locks  the  X  server till the user enters their password at
  29.           the keyboard.  While xxxxlllloooocccckkkk is has the screen locked, all new
  30.           server   connections  are  refused.   The  screen  saver  is
  31.           disabled.  The mouse cursor is turned off.   The  screen  is
  32.           blanked  and  a changing pattern is put on the screen.  If a
  33.           key or a mouse button is pressed then the user  is  prompted
  34.           for the password of the user who started xxxxlllloooocccckkkk....
  35.  
  36.           If the  correct  password  is  typed,  then  the  screen  is
  37.           unlocked  and  the  X  server  is restored.  When typing the
  38.           password Control-U and Control-H  are  active  as  kill  and
  39.           erase  respectively.   To return to the locked screen, click
  40.           in the small icon version of the changing pattern.
  41.  
  42.           If the screen is merely saved, but not  locked,  or  if  the
  43.           user  who started the program does not have a password, then
  44.           no password is required.
  45.  
  46.  
  47.      OOOOPPPPTTTTIIIIOOOONNNNSSSS
  48.           ----ddddiiiissssppppllllaaaayyyy  ddddsssspppp
  49.                The _d_i_s_p_l_a_y option sets the X11 display to lock.  xxxxlllloooocccckkkk
  50.                locks  all  available  screens  on  a given server, and
  51.                restricts you to locking only a local  server  such  as
  52.                uuuunnnniiiixxxx::::0000,,,,  llllooooccccaaaallllhhhhoooosssstttt::::0000,,,,  or ::::0000 unless you set the ----rrrreeeemmmmooootttteeee
  53.                option.
  54.  
  55.           ----mmmmooooddddeeee  mmmmooooddddeeeennnnaaaammmmeeee
  56.                As  of  this  writing  there  are  ten  display   modes
  57.                supported (plus one more for random selection of one of
  58.                the ten).
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXLLLLOOOOCCCCKKKK((((1111))))               IIIIrrrriiiixxxx ((((00006666 JJJJuuuunnnn 1111999999991111))))                XXXXLLLLOOOOCCCCKKKK((((1111))))
  71.  
  72.  
  73.  
  74.           bbbbllllaaaannnnkkkk   Blank mode shows nothing but a black screen.
  75.  
  76.           rrrroooottttoooorrrr   Rotor mode shows a swirling rotorlike thing.
  77.  
  78.           ppppyyyyrrrroooo    Pyro mode shows lots of small fireworks.
  79.  
  80.           ffffllllaaaammmmeeee   Flame  mode  shows  wierd  but  cool  cosmic   flame
  81.                   fractals.
  82.  
  83.           hhhhoooopppp     Hop mode shows the "real plane  fractals"  from  the
  84.                   September 1986 issue of Scientific American.
  85.  
  86.           iiiimmmmaaaaggggeeee   Image  mode  shows  several   sgi   logos   randomly
  87.                   appearing on the screen.
  88.  
  89.           lllliiiiffffeeee    Life mode shows Conway's game of life.
  90.  
  91.           ppppoooopppp     Pop mode shows single large fireworks  exploding  on
  92.                   the screen.
  93.  
  94.           qqqqiiiixxxx     Qix mode shows the spinning lines similar to the old
  95.                   video game by the same name.
  96.  
  97.           sssswwwwaaaarrrrmmmm   Swarm mode shows a swarm of bees following a wasp.
  98.  
  99.           rrrraaaannnnddddoooommmm  Selects one of the above modes randomly.
  100.  
  101.  
  102.           ----ddddeeeellllaaaayyyy  uuuusssseeeeccccssss
  103.                The _d_e_l_a_y option sets the speed at which  a  mode  will
  104.                operate.   It simply sets the number of microseconds to
  105.                delay  between  batches  of  "hopalong  pixels",   "qix
  106.                lines",  "life generations", "image blits", and "pop or
  107.                swarm motions".  In blank mode, it is important to  set
  108.                this  to  some  small  number  of  seconds, because the
  109.                keyboard and mouse are only checked after  each  delay,
  110.                so  you  cannot  set the delay too high, but a delay of
  111.                zero would needlessly consume cpu  checking  for  mouse
  112.                and  keyboard  input  in a tight loop, since blank mode
  113.                has no work to do.
  114.  
  115.           ----bbbbaaaattttcccchhhhccccoooouuuunnnntttt  nnnnuuuummmm
  116.                The _b_a_t_c_h_c_o_u_n_t option sets the number of _t_h_i_n_g_s  to  do
  117.                per  batch  to  _n_u_m  .  In  qix mode this refers to the
  118.                number of lines rendered in the same  color.   In  life
  119.                mode  it  is  the  number  of  generations  to let each
  120.                species live.  In hop mode this refers to the number of
  121.                pixels  rendered in the same color.  In image mode this
  122.                refers to the number of sgilogos on screen at once.  In
  123.                swarm mode this refers to the number of bees.  In rotor
  124.                mode it is the number of rotor thingys  which  whirr...
  125.                In pyro mode it is the maximum number flying rockets at
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      XXXXLLLLOOOOCCCCKKKK((((1111))))               IIIIrrrriiiixxxx ((((00006666 JJJJuuuunnnn 1111999999991111))))                XXXXLLLLOOOOCCCCKKKK((((1111))))
  137.  
  138.  
  139.  
  140.                one time.  In flame mode it is the number of levels  to
  141.                recurse (larger = more complex).  In pop mode this sets
  142.                the maximum number of sparks in  a  burst  (the  actual
  143.                number  of sparts in any one burst is chosen randomly).
  144.                In blank mode it means nothing.
  145.  
  146.           ----ccccoooolllloooorrrrccccoooouuuunnnntttt  nnnnuuuummmm
  147.                The _c_o_l_o_r_c_o_u_n_t option sets the number of colors to  use
  148.                to _n_u_m .
  149.  
  150.           ----nnnniiiicccceeee  nnnniiiicccceeeelllleeeevvvveeeellll
  151.                The _n_i_c_e option sets  system  nicelevel  of  the  xlock
  152.                process to _n_i_c_e_l_e_v_e_l .
  153.  
  154.           ----ttttiiiimmmmeeeeoooouuuutttt  sssseeeeccccoooonnnnddddssss
  155.                The _t_i_m_e_o_u_t option sets the number  of  _s_e_c_o_n_d_s  before
  156.                the password screen will time out.
  157.  
  158.           ----ssssaaaattttuuuurrrraaaattttiiiioooonnnn  vvvvaaaalllluuuueeee
  159.                The _s_a_t_u_r_a_t_i_o_n option sets saturation of the color ramp
  160.                used  to  _v_a_l_u_e  .  0  is  grayscale and 1 is very rich
  161.                color.  0.4 is a nice pastel.
  162.  
  163.           ----ffffoooonnnntttt  ffffoooonnnnttttnnnnaaaammmmeeee
  164.                The _f_o_n_t option sets the font to be used on the  prompt
  165.                screen.
  166.  
  167.           ----ffffgggg  ccccoooolllloooorrrr
  168.                The _f_g option  sets  the  color  of  the  text  on  the
  169.                password screen to _c_o_l_o_r .
  170.  
  171.           ----bbbbgggg  ccccoooolllloooorrrr
  172.                The _b_g option sets the color of the background  on  the
  173.                password screen to _c_o_l_o_r .
  174.  
  175.           ----nnnnaaaammmmeeee  tttteeeexxxxttttssssttttrrrriiiinnnngggg
  176.                _t_e_x_t_s_t_r_i_n_g is shown in front of user name, defaults  to
  177.                "Name: ".
  178.  
  179.           ----ppppaaaasssssssswwwwoooorrrrdddd  tttteeeexxxxttttssssttttrrrriiiinnnngggg
  180.                _t_e_x_t_s_t_r_i_n_g is the password prompt string,  defaults  to
  181.                "Password: ".
  182.  
  183.           ----iiiinnnnffffoooo  tttteeeexxxxttttssssttttrrrriiiinnnngggg
  184.                _t_e_x_t_s_t_r_i_n_g is an informational message to tell the user
  185.                what  to  do,  defaults  to  "Enter password to unlock;
  186.                select icon to lock.".
  187.  
  188.           ----vvvvaaaalllliiiiddddaaaatttteeee _t_e_x_t_s_t_r_i_n_g
  189.                _t_e_x_t_s_t_r_i_n_g ----vvvvaaaalllliiiiddddaaaatttteeee _m_e_s_s_a_g_e _s_h_o_w_n _w_h_i_l_e _v_a_l_i_d_a_t_i_n_g _t_h_e
  190.                _p_a_s_s_w_o_r_d, _d_e_f_a_u_l_t_s _t_o "Validating login..."
  191.  
  192.  
  193.  
  194.  
  195.      Page 3                                          (printed 4/30/98)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      XXXXLLLLOOOOCCCCKKKK((((1111))))               IIIIrrrriiiixxxx ((((00006666 JJJJuuuunnnn 1111999999991111))))                XXXXLLLLOOOOCCCCKKKK((((1111))))
  203.  
  204.  
  205.  
  206.           ----iiiinnnnvvvvaaaalllliiiidddd _t_e_x_t_s_t_r_i_n_g
  207.                _t_e_x_t_s_t_r_i_n_g ----iiiinnnnvvvvaaaalllliiiidddd  _m_e_s_s_a_g_e  _s_h_o_w_n  _w_h_e_n  _p_a_s_s_w_o_r_d  _i_s
  208.                _i_n_v_a_l_i_d, _d_e_f_a_u_l_t_s _t_o "Invalid login."
  209.  
  210.  
  211.           ----rrrreeeessssoooouuuurrrrcccceeeessss
  212.                The _r_e_s_o_u_r_c_e_s option prints the default  resource  file
  213.                for xlock to standard output.
  214.  
  215.           ----////++++rrrreeeemmmmooootttteeee
  216.                The _r_e_m_o_t_e option tells xlock  to  not  stop  you  from
  217.                locking remote X11 servers.  This option should be used
  218.                with care and is intended mainly to lock X11  terminals
  219.                which  cannot  run  _x_l_o_c_k locally.  If you lock someone
  220.                else's  workstation,  they  will  have  to  know   yyyyoooouuuurrrr
  221.                password to unlock it.
  222.  
  223.           ----////++++mmmmoooonnnnoooo
  224.                The _m_o_n_o option causes  xlock  to  display  monochrome,
  225.                (black  and  white)  pixels  rather  than  the  default
  226.                colored ones on color displays
  227.  
  228.           ----////++++nnnnoooolllloooocccckkkk
  229.                The  _n_o_l_o_c_k  option  causes  xlock  to  only  draw  the
  230.                patterns  and  not  lock  the display.  A keypress or a
  231.                mouse click will terminate the screen saver or send  it
  232.                back into the background (with ----bbbbeeeessssaaaavvvveeeerrrr).
  233.  
  234.           ----////++++aaaalllllllloooowwwwrrrrooooooootttt
  235.                The _a_l_l_o_w_r_o_o_t option allows the root password to unlock
  236.                the server as well as the user who started xlock.
  237.  
  238.           ----////++++eeeennnnaaaabbbblllleeeessssaaaavvvveeeerrrr
  239.                By default xlock will disable  the  normal  X  server's
  240.                screen  saver  since  it is in effect a replacement for
  241.                it.  Since it is possible to set delay parameters  long
  242.                enough  to  cause  phosphor burn on some displays, this
  243.                option will turn back on the default screensaver  which
  244.                is very careful to keep most of the screen black.
  245.  
  246.           ----////++++bbbbeeeessssaaaavvvveeeerrrr
  247.                If your X server supports  the  SCREEN-SAVER  protocol,
  248.                then  this  option will tell xlock to act as the screen
  249.                saver.  When you use xlock in this mode,  it  will  not
  250.                lock  the screen immediately.  Instead, when the server
  251.                decides the screen should be blanked,  it  will  notify
  252.                xlock  instead  of  merely  blanking the screen.  Xlock
  253.                will  then  display  whatever  display  mode  you  have
  254.                selected.
  255.  
  256.                In this mode, xlock will not exit when you  type  in  a
  257.                password.   Instead,  its window will disappear, and it
  258.  
  259.  
  260.  
  261.      Page 4                                          (printed 4/30/98)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      XXXXLLLLOOOOCCCCKKKK((((1111))))               IIIIrrrriiiixxxx ((((00006666 JJJJuuuunnnn 1111999999991111))))                XXXXLLLLOOOOCCCCKKKK((((1111))))
  269.  
  270.  
  271.  
  272.                will wait for the next screen saver time out.
  273.  
  274.                This option forces ----eeeennnnaaaabbbblllleeeessssaaaavvvveeeerrrr....
  275.  
  276.           ----bbbbllllaaaannnnkkkktttthhhhrrrreeeesssshhhh _n_u_m
  277.                Whenever xlock is displaying some graphic mode and  the
  278.                system load rises over this value, xlock will switch to
  279.                blank mode.  Since blank mode is  much  less  expensive
  280.                than  many  of  the graphic modes, this will allow time
  281.                for other system activity.
  282.  
  283.           ----////++++aaaalllllllloooowwwwaaaacccccccceeeessssssss
  284.                This option is required for servers which do not  allow
  285.                clients  to modify the host access control list.  It is
  286.                also useful if you need to run x clients  on  a  server
  287.                which is locked for some reason...  When allowaccess is
  288.                true, the X11 server is left open for clients to attach
  289.                and   thus   lowers   the  inherent  security  of  this
  290.                lockscreen.  A side effect of using this option is that
  291.                if  xlock  is  killed -KILL, the access control list is
  292.                not lost.
  293.  
  294.           ----////++++eeeecccchhhhooookkkkeeeeyyyyssss
  295.                The _e_c_h_o_k_e_y_s option causes xlock to echo '?' characters
  296.                for  each  key  typed  into  the password prompt.  Some
  297.                consider this a security risk, so the default is to not
  298.                echo anything.
  299.  
  300.           ----////++++uuuusssseeeeffffiiiirrrrsssstttt
  301.                The _u_s_e_f_i_r_s_t option causes xlock to use  the  keystroke
  302.                which  got  you  to  the  password  screen as the first
  303.                character in the password.  The default  is  to  ignore
  304.                the first key pressed.
  305.  
  306.           ----vvvv   Verbose mode, tells what options it is going to use.
  307.  
  308.  
  309.      BBBBUUUUGGGGSSSS
  310.           "kill -KILL xxxxlllloooocccckkkk " causes the server that was locked to  be
  311.           unusable, since all hosts (including localhost) were removed
  312.           from the access control list to lock out new X clients,  and
  313.           since  xlock  couldn't  catch  SIGKILL, it terminated before
  314.           restoring the access control list.  This will  leave  the  X
  315.           server  in  a state where "_y_o_u _c_a_n _n_o _l_o_n_g_e_r _c_o_n_n_e_c_t _t_o _t_h_a_t
  316.           _s_e_r_v_e_r, _a_n_d _t_h_i_s _o_p_e_r_a_t_i_o_n _c_a_n_n_o_t  _b_e  _r_e_v_e_r_s_e_d  _u_n_l_e_s_s  _y_o_u
  317.           _r_e_s_e_t   _t_h_e   _s_e_r_v_e_r."              -From   the  X11R4  Xlib
  318.           Documentation, Chapter 7.
  319.  
  320.           On some kernel and  hardware  combinations,  ppppoooopppp  mode  will
  321.           cause trashy flickering at the top of the screen.  This is a
  322.           bug in the graphics  library/kernel/hardware  (depending  on
  323.           how you look at it) and is out of xxxxlllloooocccckkkk's control.
  324.  
  325.  
  326.  
  327.      Page 5                                          (printed 4/30/98)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      XXXXLLLLOOOOCCCCKKKK((((1111))))               IIIIrrrriiiixxxx ((((00006666 JJJJuuuunnnn 1111999999991111))))                XXXXLLLLOOOOCCCCKKKK((((1111))))
  335.  
  336.  
  337.  
  338.      NNNNOOOOTTTTEEEE
  339.           If you run xxxxlllloooocccckkkk on a machine  not  running  the  kernel  in
  340.           /unix,  you  can potentially confuse xxxxlllloooocccckkkk since it will not
  341.           be able to measure the load correctly.  If the load  appears
  342.           too  far  out  of  range, xxxxlllloooocccckkkk will print a message to that
  343.           affect and disable the load threshold checking.
  344.  
  345.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  346.           X(1), xset(1), Xlib Documentation.
  347.  
  348.      AAAAUUUUTTTTHHHHOOOORRRR
  349.            Patrick J. Naughton      (naughton@eng.sun.com)
  350.            Mailstop 10-20
  351.            Sun Laboratories, Inc.
  352.            Mountain View, CA  94043
  353.            415/336-1080
  354.  
  355.  
  356.      CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
  357.           Copyright (c) 1988-91 by Patrick J. Naughton
  358.  
  359.           Permission  to  use,  copy,  modify,  and  distribute   this
  360.           software  and  its documentation for any purpose and without
  361.           fee is hereby granted, provided  that  the  above  copyright
  362.           notice  appear  in  all  copies and that both that copyright
  363.           notice and  this  permission  notice  appear  in  supporting
  364.           documentation.
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.      Page 6                                          (printed 4/30/98)
  394.  
  395.  
  396.  
  397.